package com.aiti.lulian.mapper;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.dto.WeChatUserCardHolderDto;
import com.aiti.lulian.entity.CardHolder;
import com.aiti.lulian.vo.CardHolderVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CardHolderMapper extends SuperMapper<CardHolder> {
    List<CardHolderVo> findCardHolderListByBaseId(@Param("baseId") String baseId);

    CardHolderVo findCardHolderById(@Param("baseId") String baseId, @Param("cardHolderUserId") String cardHolderUserId);

    void deleteCardHolder(@Param("baseId") String baseId, @Param("cardHolderUserId") String cardHolderUserId);
}
